package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.AddressFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class AddressFallback implements AddressFeign {
    @Override
    public ResultModel<AddressDefaultVo> default1(AddressDefaultDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AddressListVo> list(AddressListDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel save(AddressSaveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel remove(AddressRemoveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel defaultSet(AddressDefaultSetDto request) {
        return ResultModel.faultTolerant();
    }
}
